import useUserStore from "@/stores/modules/user";

export default{
  mounted(el,binding,vnode){
    const { value } = binding;
    const permissions = useUserStore().permissions;
    if(!value || permissions.includes('*:*:*') || permissions.includes(value))return;
    el.parentNode &&  el.parentNode.removeChild(el);
  }
}
